package com.bit.net;

import io.netty.channel.Channel;
import lombok.NoArgsConstructor;

/**
 * self-protocal-RequestContext
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/10/11 上午 10:36
 */

@NoArgsConstructor
public class RequestContext {

    //上行消息
    private Request payload;

    //channel
    private Channel channel;

    public Request getPayload() {
        return payload;
    }

    public RequestContext setPayload(Message payload) {
        this.payload = (Request) payload;
        return this;
    }

    public Channel getChannel() {
        return channel;
    }

    public RequestContext setChannel(Channel channel) {
        this.channel = channel;
        return this;
    }
}
